package cn.edu.whu.irlab.service.impl;

import cn.edu.whu.irlab.dao.QuestionCollectionMapper;
import cn.edu.whu.irlab.model.QuestionCollection;
import cn.edu.whu.irlab.model.QuestionCollectionKey;
import cn.edu.whu.irlab.service.QuestionCollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Roger on 2016/7/30.
 */
@Service
public class QuestionCollectionServiceImpl implements QuestionCollectionService {

    @Autowired
    private QuestionCollectionMapper questionCollectionMapper;

    @Override
    public int deleteByPrimaryKey(QuestionCollectionKey key) {
        return questionCollectionMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(QuestionCollection record) {
        return questionCollectionMapper.insert(record);
    }

    @Override
    public int insertSelective(QuestionCollection record) {
        return questionCollectionMapper.insertSelective(record);
    }

    @Override
    public QuestionCollection selectByPrimaryKey(QuestionCollectionKey key) {
        return questionCollectionMapper.selectByPrimaryKey(key);
    }

    @Override
    public int updateByPrimaryKeySelective(QuestionCollection record) {
        return questionCollectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(QuestionCollection record) {
        return questionCollectionMapper.updateByPrimaryKey(record);
    }
}
